package com.chuangjiangx.member.basic.ddd.dal.mapper;

import com.chuangjiangx.member.basic.ddd.dal.dto.MerchantComponent;
import com.chuangjiangx.member.basic.ddd.dal.dto.MerchantUser;
import com.chuangjiangx.member.basic.ddd.dal.dto.MerchantUserInfo;
import com.chuangjiangx.member.basic.ddd.dal.dto.StoreUserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 根据商户id获取商户用户列表，非店长店员
 * Created by YangKuo on 2018/1/16.
 */
public interface MerchantUserInfoDalMapper {

    List<MerchantUser> selectMerchantUserListByMerchantId(@Param("merchantId") Long merchantId);

    List<Long> selectDefaultMerchantUserId(Long merchantId);

    MerchantUserInfo selectMerchantUserInfo(Long merchantUserId);

    MerchantUser selectMerchantUserByUsername(String username);

    StoreUserInfo selectStoreUserInfo(Long storeUserId);

    String selectMerchantUserPassword(Long merchantUserId);

    /**
     *
     * @param merchantUserId
     * @param plat 1.商户平台 3: APP
     * @return
     */
    List<MerchantComponent> selectMerchantComponent(@Param("merchantUserId") Long merchantUserId,@Param("plat") Integer plat);

}
